<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>ESA Music Webapp</title>
            </f:facet>
        </h:head>

        <h:body>
            <h:outputStylesheet library="css" name="default.css" />
            <p:layout fullPage="true">
                 <p:layoutUnit position="north" size="50" resizable="true" closable="true" collapsible="true">
                     <b>ESA Music Webapp</b><br/>
                    Applied SOA to search music online on last.fm and chartlyrics
                </p:layoutUnit>

                <p:layoutUnit position="south" size="50" closable="true" collapsible="true">
                    EsaMusicWebapp eine Projektarbeit im Kurs Enterprise Software Architecture WS 2012/2013
                </p:layoutUnit>
                
                <p:layoutUnit position="center">
                    <h:form id="loginForm">
                        <p:messages id="messages" showDetail="true" autoUpdate="true" /> 
                        <p:panelGrid id="loginGrid" columns="3">
                        <p:growl id="growl" showDetail="true"/>
                            Username:
                            <p:inputText id="usernameInp" value="#{login.usernameInp}" /><p:message id="loginMessage" for="usernameInp"/>
                            Password:
                            <p:password id="passwordInp" value="#{login.passwordInp}" /><p:message id="registerMessage" for="passwordInp"/>
                            <p:commandButton id="loginBtn" value="Login" action="#{login.login()}" update="loginForm"/>
                            <p:commandButton id="registerBtn" value="Register" action="#{login.register()}" update="loginForm"/>
                        </p:panelGrid>
                    </h:form>
                </p:layoutUnit>
            </p:layout>
        </h:body>
    </f:view>
</html>